#include "Mutex.h"


CMutexLock::CMutexLock(): m_holder(0)
{
}

CMutexLock::~CMutexLock()
{
}

void CMutexLock::Lock()
{
    MCHECK(pthread_mutex_lock(&m_mutex));
    AssignHolder();
}

void CMutexLock::UnLock()
{
    UnassignHolder();
    MCHECK(pthread_mutex_unlock(&m_mutex));
}
